home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / cclib / include / stdlist.h < prev    next >
C/C++ Source or Header  |  1995-11-16  |  697b  |  46 lines

  1. #ifndef STDLIST_H
  2. #define STDLIST_H 1
  3.  
  4. typedef struct _node
  5. {
  6. struct _node *prev, *next;
  7. } _node;
  8.  
  9.  
  10. typedef struct
  11. {
  12. _node *first, *last;
  13. long length;
  14. } _list;
  15.  
  16. #ifndef ANSIC
  17. _node *inst_node();
  18. void put_head();
  19. void *add_head();
  20. void put_tail();
  21. void *add_tail();
  22. void *remv_head();
  23. void *remv_tail();
  24. void remv_list();
  25. void *r_node();
  26. void *remv_node();
  27. #else
  28. _node *inst_node(long);
  29. void put_head(_list *,_node *);
  30. void *add_head(_list *,long);
  31. void put_tail(_list *,_node *);
  32. void *add_tail(_list *,long);
  33. void *remv_head(_list *, void **);
  34. void *remv_tail(_list *, void **);
  35. void remv_list(_list *);
  36. void *r_node(_list *,_node *,void **);
  37. void *remv_node(_list *,void *);
  38. #endif
  39.  
  40. #endif
  41.  
  42.  
  43.  
  44.  
  45.  
  46.